<?php
/**
 * Created by PhpStorm.
 * User: wangjie
 * Date: 2018/5/4
 * Time: 18:04
 */
use yii\helpers\Html;
use kartik\form\ActiveForm;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\AccountWechat */

$this->title = '图片上传';
$this->params['breadcrumbs'][] = ['label' => 'Account Wechats', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>

<?php $form = ActiveForm::begin(['id' => 'attachment-form', 'options' => ['enctype' => 'multipart/form-data'], 'method'=>'post', 'action' => ['params/file-up'],]); ?>
<table class="table table-striped table-bordered">
    <h2>选择图片文件</h2>
    <tr>
        <td><?php echo Html::fileInput('file', null, ['class' => 'filename']); ?></td>
        <td><span style="color: red;">(*请在保证质量的情况下,将文件大小控制最小!)</span>
    </tr>
    <tr>
        <td>
            <input type="submit" value="提交" name="submit_btn" class="btn btn-primary">
        </td>
    </tr>
</table>
<?php ActiveForm::end(); ?>


